package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.domain.Tag;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface StrategyCommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyComment record);

    StrategyComment selectByPrimaryKey(Long id);

    List<StrategyComment> selectAll();

    int updateByPrimaryKey(StrategyComment record);

    List<StrategyComment> selectForList(QueryObject qo);

    List<Tag> selectByStrategyId(Long strategyId);

    List<StrategyComment> selectAllMessage(Long strategyId);

    List<StrategyComment> selectByCommentId(Long commentId);


    List<StrategyComment> queryLsit(@Param("targetId") Long targetId, @Param("state") int state);
}